package kr.hkit.powerjava.chapter11.Programming;

public class Student {

	private int stdNum;
	private String stdName;
	private String stdMajor;
	private int grade;
	private int credit;
	public Student() {//기본 생성자
	}
	
	public Student(int stdNum, String stdName) {
		this.stdNum = stdNum;
		this.stdName = stdName;
	}

	public Student(int stdNum, String stdName, String stdMajor, int grade,
			int credit) {
		this.stdNum = stdNum;
		this.stdName = stdName;
		this.stdMajor = stdMajor;
		this.grade = grade;
		this.credit = credit;
	}
	

	//아래로는 접근자 설정자

	public int getStdNum() {
		return stdNum;
	}

	public void setStdNum(int stdNum) {
		this.stdNum = stdNum;
	}

	public String getStdName() {
		return stdName;
	}

	public void setStdName(String stdName) {
		this.stdName = stdName;
	}

	public String getStdMajor() {
		return stdMajor;
	}

	public void setStdMajor(String stdMajor) {
		this.stdMajor = stdMajor;
	}

	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public int getCredit() {
		return credit;
	}

	public void setCredit(int credit) {
		this.credit = credit;
	}
}
